<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="referrer" content="never">
    <title>margin在flex中的表现</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style: none;
        }

        .box {
            display: flex;
            width: 300px;
            height: 300px;
            margin: 30px;
            border: 1px solid #f00;
            /* justify-content: center;
            align-items: flex-start;
            align-content: flex-end; */
        }

        .inner {
            width: 70px;
            height: 70px;
            margin: auto 0 auto auto;
            background-color: #0f0;
        }

        .inner:last-child {
            margin-right: auto;
        }
    </style>
</head>
<body>

    <!-- 在flex容器中，margin设置为 auto 的值，平分其所在方向的剩余空间
        jusity-content/align-items/align-content 失效
    -->

    <div class="box">
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
    </div>
    <script type="text/javascript">
        
    </script>
</body>
</html>